# -*- coding: utf-8 -*-
'''
This is one config file requested by QA
and we need to preprocess the crawled dataset by these demands
'''
import scrapy


class IndexPageItem(scrapy.Item):
    '''
    Items for Index page
    We only need to store the URLs crawled from Index Page
    '''
    urls = scrapy.Field()


class ComplaintItem(scrapy.Item):
    sourceId = scrapy.Field()
    save_source_image = scrapy.Field()
    source_web_origin = scrapy.Field()
    info_category = scrapy.Field()

    _url_unique = scrapy.Field()
    url = scrapy.Field()

    title = scrapy.Field()
    text = scrapy.Field()

    brand_src = scrapy.Field()
    series_src = scrapy.Field()
    model_src = scrapy.Field()

    image_urls = scrapy.Field()


class CuZuItem(scrapy.Item):
    create_time = scrapy.Field()
    sourceId = scrapy.Field()
    update_time = scrapy.Field()
    url_temp = scrapy.Field()
    price = scrapy.Field()
    boughtdate = scrapy.Field()
    address = rscrapy.Field()
    image_url = scrapy.Field()
    brand = scrapy.Field()
    series = scrapy.Field()
    carspec_name = scrapy.Field()
    customer_voice = scrapy.Field()
    title = scrapy.Field()
    URL = scrapy.Field()


